import pytest
from log import log_set
from mail import send_mail
if __name__ == '__main__':
    log_set()
    pytest.main(['-s','test_a.py','--alluredir=./报告数据','--clean-alluredir'])
    import os
    os.system('allure generate ./报告数据 -o ./报告 --clean')
    send_mail(['log.log','./报告/index.html'])